package cn.bdqn.witcity.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebMvcConfig implements WebMvcConfigurer {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("home/console.html").setViewName("/views/home/console");
        registry.addViewController("home/homepage1.html").setViewName("/views/home/homepage1");
        registry.addViewController("home/homepage2.html").setViewName("/views/home/homepage2");
        registry.addViewController("user/user/list.html").setViewName("/views/user/user/list");

    }

}
